package pe.gob.onpe.facade.local;

import java.util.List;
import javax.ejb.Local;

import pe.gob.onpe.ejb.Perfiles;


/**
 * Local interface for PerfilesFacade.
 * 
 * @author MyEclipse Persistence Tools
 */
@Local
public interface PerfilesFacadeLocal {
	/**
	 * Perform an initial save of a previously unsaved Perfiles entity. All
	 * subsequent persist actions of this entity should use the #update()
	 * method.
	 * 
	 * @param entity
	 *            Perfiles entity to persist
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void save(Perfiles entity);

	/**
	 * Delete a persistent Perfiles entity.
	 * 
	 * @param entity
	 *            Perfiles entity to delete
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void delete(Perfiles entity);

	/**
	 * Persist a previously saved Perfiles entity and return it or a copy of it
	 * to the sender. A copy of the Perfiles entity parameter is returned when
	 * the JPA persistence mechanism has not previously been tracking the
	 * updated entity.
	 * 
	 * @param entity
	 *            Perfiles entity to update
	 * @returns Perfiles the persisted Perfiles entity instance, may not be the
	 *          same
	 * @throws RuntimeException
	 *             if the operation fails
	 */
	public Perfiles update(Perfiles entity);

	public Perfiles findById(Long id);

	/**
	 * Find all Perfiles entities with a specific property value.
	 * 
	 * @param propertyName
	 *            the name of the Perfiles property to query
	 * @param value
	 *            the property value to match
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<Perfiles> found by query
	 */
	public List<Perfiles> findByProperty(String propertyName, Object value,
			int... rowStartIdxAndCount);

	public List<Perfiles> findByNombre(Object nombre,
			int... rowStartIdxAndCount);

	public List<Perfiles> findByDescripcion(Object descripcion,
			int... rowStartIdxAndCount);

	/**
	 * Find all Perfiles entities.
	 * 
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<Perfiles> all Perfiles entities
	 */
	public List<Perfiles> findAll(int... rowStartIdxAndCount);
}